package mihoyo.kqcc.globeException;

import lombok.Data;

@Data
public class MyGlobeException extends RuntimeException{
    private String errorCode;
    public MyGlobeException() {
    }

    public MyGlobeException(String message) {
        super(message);
    }
    public MyGlobeException(GlobeExceptionEnum globeExceptionEnum) {
        super(globeExceptionEnum.getEmsg());
        this.errorCode=globeExceptionEnum.getEcode();
    }
}
